package com.mutouren.modules.org.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.mutouren.common.orm.spring.BaseDao;
import com.mutouren.modules.org.model.Person;

public interface PersonDao extends BaseDao<Person> {

	int modifyPassword(@Param("personId")int personId, @Param("password")String password);
	int updateLastLoginTime(int personId);
	List<Person> selectByOrgId(int orgId);
	int setMainPosition(@Param("personId")int personId, @Param("orgId")int orgId);
	
	Person getByIdentity(Person person);
}
